package com.yunxin.customui.myinterface.chart;

import com.yunxin.customui.bean.echart.ChartBean;
import com.yunxin.customui.bean.echart.ChartCfgBean;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;
import java.util.Map;

public interface IChartBuilder<Config extends ChartCfgBean,T> {


    ChartData buildChart(ChartBean chartBean, Config config, T t);

    @Data
    @AllArgsConstructor
    class ChartData{

       // List<Object> xdata;

        Map<String,List<String>> dataMap;
    }

}
